package com.sky.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

@ApiModel(value = "com-sky-domain-EnvironmentalKnowledge")
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "environmental_knowledge")
public class EnvironmentalKnowledge {
    @TableId(value = "id", type = IdType.AUTO)
    @ApiModelProperty(value = "")
    private Integer id;

    @TableField(value = "title")
    @ApiModelProperty(value = "文章标题")
    private String title;

    @TableField(value = "url")
    @ApiModelProperty(value = "视频URL")
    private String url;

    @TableField(value = "createByUser")
    @ApiModelProperty(value = "创建用户")
    private String createByUser;

    @TableField(value = "createByName")
    @ApiModelProperty(value = "创建用户中文名称")
    private String createByName;

    @TableField(value = "action")
    private Byte action;

    @TableField(value = "actionStamp")
    private Date actionStamp;

    @TableField(value = "createStamp")
    private Date createStamp;

    @TableField(value = "note")
    @ApiModelProperty(value = "文章内容")
    private String note;

    public  static String TITLE = "title";
    public  static String CREATE_BY_USER = "createByUser";
    public  static String CREATE_BY_USERNAME = "createByName";

}